<!--{include header}-->
<!--{if $team['close_time']}-->
<div class="mtips"><span class="red">抱歉，您来晚了，该商品秒杀已经结束!</span>不想错过明天的秒杀？立刻订阅每日最新秒杀信息：<a target="_blank" href="/subscribe.php?ename={$city['ename']}" >我要订阅</a></div> 
<!--{/if}-->
<!--{if $order}-->
		<div class="mtips" id="nopayDiv"><span class="red">您已经下过订单，但还没有付款。（<a id="payurl" href="/order/check.php?id={$order['id']}">点击付款</a>）</span></div>
<!--{/if}--><DIV id=main> 
<DIV class=order_top><!-- 短标题 -->
<H1><SPAN 
style="font-size:28px" id=titleprefix><!--{if strip_tags($team['summary'])!=$team['summary']}-->{$team['summary']}<!--{else}--><div class="digest">${nl2br(strip_tags($team['summary']))}</div><!--{/if}--></SPAN><SPAN><SPAN 
id=shortname></SPAN></SPAN> <SPAN style="DISPLAY: none" 
id=gbtitle></SPAN> </H1><!-- 简短描述 -->
<P class=des><SPAN style="DISPLAY: block" 
id=productname>{$team['title']}</SPAN> 
</P>
<DIV class=order_wrap>
<DIV class=order_tic><!-- 抢购按钮 -->
<DIV id=top_qg_but_div class="buy_btn b_buy"><a ${$team['begin_time']<time()?'href="/team/buy.php?id='.$team['id'].'"':''}>抢购</a><SPAN 
id=top_qg_price class=value><I>¥</I>${moneyit($team['team_price'])}</SPAN> </DIV>
<DIV class=ordersum><!-- 价格列表 -->
<table class="discount" cellpadding="0" cellspacing="0">
            <tbody>
              <tr>
                <th>原价</th>
                <th>折扣</th>
                <th>节省</th>
              </tr>
              <tr>
                <td>&yen;${moneyit($team['market_price'])}</td>
                <td>${team_discount($team)}折</td>
				                <td><span class="c2">&yen;{$discount_price}</span></td>
              </tr>
            </tbody>
          </table>
					 <!--{if ($team['state']=='soldout')}-->				
					
		  				<div class="buyinfo">	
						 <p class="buynum">团购已卖光<br/>共有<span class="c2">{$team['now_number']}</span>人购买</p>
						 <p class="timeleft"><span class="savetime">{$diff_time}000</span>本团购结束时间：<br/><span class="showTime">${date('Y-m-d', $team['close_time'])} ${date('H:i:s', $team['close_time'])}</span></p>
			             <p class="success s_js">团购已卖光，查看<a href="/index.php">其他团购</a></p>
													  	</div>
	          	<div class="order sold"><span>已卖光</span><em >&yen;${moneyit($team['team_price'])}</em></div>
					<!--{elseif $team['close_time']}-->				
					
		  				  <div class="buyinfo">	
											 <p class="buynum">团购已结束<br/>共有<span class="c2">{$team['now_number']}</span>人购买</p>
						 <p class="timeleft"><span class="savetime">{$diff_time}000</span>本团购结束于：<br/><span class="showTime">${date('Y-m-d', $team['close_time'])} ${date('H:i:s', $team['close_time'])}</span></p>
			             <p class="success s_js">团购已结束，查看<a href="/index.php">其他团购</a></p>
													  	</div>
	          	<div class="order end"><span>已结束</span><em >&yen;${moneyit($team['team_price'])}</em></div>
					<!--{else}-->
				
		  				<div class="buyinfo">
			            <p class="buynum"><span class="c2">{$team['now_number']}</span>人已购买<br/>数量有限，下单要快哟</p><DIV class=line></DIV>
							<script>
      	//var nowDate = {$now}000;
      	//var endDate = new Date(Date.parse("${date('Y-m-d H:i:s', $team['end_time'])}".replace(/-/g,"/")));
		//var remainTime = endDate.getTime()-nowDate;
		var remainTime = {$diff_time}000;
		window.setInterval(function(){
			remainTime=remainTime-1000;
			var leftsecond = parseInt(remainTime/1000);	
			var day1=Math.floor(leftsecond/(60*60*24)); 
			var hour=Math.floor((leftsecond-day1*24*60*60)/3600); 
			var minute=Math.floor((leftsecond-day1*24*60*60-hour*3600)/60); 
			var second=Math.floor(leftsecond-day1*24*60*60-hour*3600-minute*60); 		
			if(day1 > 0){ 
				$("#deal-timeleft").html("<i>"+day1+"</i>天<i>"+hour+"</i>小时<i>"+minute+"</i>分<i>"+second+"</i>秒");	
			}
			else{
				if(hour == 0 && minute == 0 && second ==0){
				    $.ajax({			    	
						  type: "GET",
						  url: "/cache/all",
						  async:false,
						  success:function(){
						  	setTimeout('window.location.href="/team"',1000);
						  }
				    });
				}
				else{
					$("#deal-timeleft").html("<i>"+hour+"</i>小时<i>"+minute+"</i>分<i>"+second+"</i>秒");
				}	
			}	
		}, 1000);
</script>
			            <p class="timeleft"><span id="savetime" class="savetime">{$diff_time}000</span> 距离本次秒杀结束还有：<br/><span id="deal-timeleft" class="showTime"><i>加载中...</i></span><DIV class=line></DIV> <UL class=baozhang>
  <LI class=tui_wfh><A href="/help/zuitu.php" 
  target=_blank>48小时未发货退款</A></LI></UL><!-- 保障图标 --> </p>
						
											  </div>
					  <div class="order ${$team['begin_time']<time()?'buy':'wait'}">
						<a ${$team['begin_time']<time()?'href="/team/buy.php?id='.$team['id'].'"':''}>抢购</a>
						<em >&yen;${moneyit($team['team_price'])}</em>
					</div>
					
					<!--{/if}--> 
					
                    
    
    
 





<DIV style="LINE-HEIGHT: 13px; BOTTOM: 10px; LEFT: 58px" class=share>

<!-- Baidu Button BEGIN -->
<DIV id=bdshare class="bdshare_t bds_tools get-codes-bdshare" 
data="{'text':'{$team['title']}（To： @{$INI['system']['sitename']}）','pic':'${team_image($team['image'])}','url':'{$INI['system']['wwwprefix']}/team.php?id={$oneev56['id']}'}"><A 
class=bds_qzone></A><A class=bds_tsina></A><A class=bds_tqq></A><A 
class=bds_renren></A><SPAN class=bds_more>更多</SPAN> </DIV></DIV>
<SCRIPT id=bdshare_js type=text/javascript 
data="type=tools&amp;uid=651783"></SCRIPT>

<SCRIPT id=bdshell_js type=text/javascript></SCRIPT>

<SCRIPT type=text/javascript>
						    //在这里定义bds_config
						    var bds_config = {'snsKey':{'tsina':'3479120830','qzone':'10000011'}};
							document.getElementById("bdshell_js").src = "http://bdimg.share.baidu.com/static/js/shell_v2.js?t=" + new Date().getHours();
						</SCRIPT>
<!-- Baidu Button END --></DIV></DIV>



<!-- 轮转图片 -->
<DIV id=order_pic class=order_pic>
<div class="deal-buy-cover-img" id="team_images">
					<!--{if $team['image1']||$team['image2']}-->
						<div class="mid">
							<ul>
								<li ><img src="${team_image($team['image'])}"/></li>
							<!--{if $team['image1']}-->
								<li><img src="${team_image($team['image1'])}" /></li>
							<!--{/if}-->
							<!--{if $team['image2']}-->
								<li><img src="${team_image($team['image2'])}" /></li>
							<!--{/if}-->
							</ul>
							<div id="img_list">
								<a ref="1" class="active">1</a>
							<!--${$imageindex=1;}-->
							<!--{if $team['image1']}-->
								<a ref="${++$imageindex}" >{$imageindex}</a>
							<!--{/if}-->
							<!--{if $team['image2']}-->
								<a ref="${++$imageindex}" >{$imageindex}</a>
							<!--{/if}-->
							</div> 
						</div>
						<!--{else}-->
							<img src=" ${team_image($team['image'])}" alt="{$team['title']}" />
						<!--{/if}-->
					</div>
  
  </DIV>  </DIV>
</DIV>
   <!-- 团购大图和标题  -->
	<div class="iwrap"> 
  <!-- 左侧 -->
  <div class="i_fl"> 	

    <!-- 商品详情 -->
	<script>
	$(function(){
		$("li.tab_btn").click(function(){
			//alert($(".tab_btn").index($(this)));
			$("div.tab_box").each(function(){
				$(this).hide()
			})
			$("li.tab_btn").each(function(){
				$(this).removeClass("cur");
			})
			$("div.tab_box").eq($("li.tab_btn").index($(this))).show();
			$(this).addClass("cur");
			})
		})
	</script>
    <div class="xq">
      <ul class="xqlist c3">
        <li class="tab_btn cur"><a>商品详情</a></li>
        <li class="tab_btn"><a>商家信息</a></li>
      </ul>
      <div class="details wide">

<style type="text/css">
/*用纯CSS控制图片最大宽度 ev56.com*/
#ev56_main_side .blk_ev56 img{width: expression(this.width > 670 ? 670: true); max-width: 670px;}
</style>		
<div id="ev56_main_side" class="tab_box">
	
						<!--{if trim($team['detail'])}-->
                            <!--<h2 id="detail">本单详情</h2>-->
							<div class="blk_ev56 detail">{$team['detail']}</div>
						<!--{/if}-->

						<!--{if trim($team['notice'])}-->
							<h2 id="detailit">特别提示</h2>
							<div class="blk_ev56 cf">{$team['notice']}</div>
						<!--{/if}-->
						<!--{if trim(strip_tags($team['userreview']))}-->
							<h3 class="quote_tit1">大家说</h3>
							<div class="quote_s">
							<span style="font-size: 14px"><div class="blk_ev56 review">${userreview($team['userreview'])}</div></span></div>
							<p style="font-weight: bold; color: #4f69e9; text-align: right">
							<span style="font-size: 14px">网友点评</span></p> 
						<!--{/if}-->
						<!--{if trim(strip_tags($team['systemreview']))}-->							
							<div class="quote_tit2_div">
								<ul class="sharecon">
								  <li>分享到 ：</li>
									<li><a class="i_sina" href="${share_sina($team)}" target="_blank">新浪</a></li>
									<li><a class="i_qq"  href="${share_tencent($team)}" target="_blank">腾讯</a></li>
								</ul>
								<h3 class="quote_tit2">{$INI['system']['abbreviation']}说</h3>
							</div>
							<span id="syscomment">
							<div class="blk_ev56 review">{$team['systemreview']}</div>
							</span>
						<!--{/if}-->
											
</div>

<div class="tab_box" style="display:none;">
					<div class="side" id="team_partner_side_${(!option_yes('teamwhole')&&abs(intval($partner['id'])))?1:0}">
                            <div id="side-business">	
								<h3>{$partner['title']}</h3>
								<div style="margin-top:10px;">{$partner['location']}</div>
								<div style="margin-top:10px;"><a href="{$partner['homepage']}" target="_blank">${domainit($partner['homepage'])}</a></div>
								
							</div>
						</div>					
</div>
					 
      </div>
      <div class="clear"></div>
	  <span class="fx flt"></span><span class="fx frt"></span>
    </div>
    <!-- 商品详情 end --> 
  </div>
  <!-- 左侧 end --> 
  <div class="i_fr">
		<!--每日签到-->
		<!--{include block_side_daysign}-->
		<!--产品视频-->
		<!--{include block_side_flv}-->   
		<!--今日其他团购-->
		<!--{include block_side_others}-->
		<!--今日秒杀--> 
		<!--{include block_side_others_seconds}--> 
		<!--本单答疑--> 
		<!--{include block_side_ask}-->
		<!--网站公告-->
		<!--{include block_side_bulletin}-->   
		<!--网站新闻--> 
		<!--{include block_side_news}-->
		<!--手机访问-->
		<!--{include block_side_mobile}-->  
		<!--小调查-->
		<!--{include block_side_vote}-->    
		<!--邀请有奖、加入我们-->  	
		<!--{include block_side_job}-->
  </div>
  <div class="clear"></div>
</div>

</div>
<table width="980" border="0" cellpadding="0" cellspacing="0">
  <!--DWLayoutTable-->
  <tr>
    <td width="980" height="20"></td>
  </tr>
</table>
<!--{include footer}-->
